﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000045 RID: 69
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AddRelicFilterPlanScRsp : IMessage<AddRelicFilterPlanScRsp>, IMessage, IEquatable<AddRelicFilterPlanScRsp>, IDeepCloneable<AddRelicFilterPlanScRsp>, IBufferMessage
	{
		// Token: 0x170000D6 RID: 214
		// (get) Token: 0x06000305 RID: 773 RVA: 0x000098B9 File Offset: 0x00007AB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AddRelicFilterPlanScRsp> Parser
		{
			get
			{
				return AddRelicFilterPlanScRsp._parser;
			}
		}

		// Token: 0x170000D7 RID: 215
		// (get) Token: 0x06000306 RID: 774 RVA: 0x000098C0 File Offset: 0x00007AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AddRelicFilterPlanScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170000D8 RID: 216
		// (get) Token: 0x06000307 RID: 775 RVA: 0x000098D2 File Offset: 0x00007AD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AddRelicFilterPlanScRsp.Descriptor;
			}
		}

		// Token: 0x06000308 RID: 776 RVA: 0x000098D9 File Offset: 0x00007AD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AddRelicFilterPlanScRsp()
		{
		}

		// Token: 0x06000309 RID: 777 RVA: 0x000098E4 File Offset: 0x00007AE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AddRelicFilterPlanScRsp(AddRelicFilterPlanScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.plan_ = ((other.plan_ != null) ? other.plan_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600030A RID: 778 RVA: 0x00009930 File Offset: 0x00007B30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AddRelicFilterPlanScRsp Clone()
		{
			return new AddRelicFilterPlanScRsp(this);
		}

		// Token: 0x170000D9 RID: 217
		// (get) Token: 0x0600030B RID: 779 RVA: 0x00009938 File Offset: 0x00007B38
		// (set) Token: 0x0600030C RID: 780 RVA: 0x00009940 File Offset: 0x00007B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170000DA RID: 218
		// (get) Token: 0x0600030D RID: 781 RVA: 0x00009949 File Offset: 0x00007B49
		// (set) Token: 0x0600030E RID: 782 RVA: 0x00009951 File Offset: 0x00007B51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlan Plan
		{
			get
			{
				return this.plan_;
			}
			set
			{
				this.plan_ = value;
			}
		}

		// Token: 0x0600030F RID: 783 RVA: 0x0000995A File Offset: 0x00007B5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AddRelicFilterPlanScRsp);
		}

		// Token: 0x06000310 RID: 784 RVA: 0x00009968 File Offset: 0x00007B68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AddRelicFilterPlanScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Plan, other.Plan) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000311 RID: 785 RVA: 0x000099B8 File Offset: 0x00007BB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.plan_ != null)
			{
				num ^= this.Plan.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000312 RID: 786 RVA: 0x00009A0D File Offset: 0x00007C0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000313 RID: 787 RVA: 0x00009A15 File Offset: 0x00007C15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000314 RID: 788 RVA: 0x00009A20 File Offset: 0x00007C20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this.plan_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.Plan);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000315 RID: 789 RVA: 0x00009A7C File Offset: 0x00007C7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.plan_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Plan);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000316 RID: 790 RVA: 0x00009AD4 File Offset: 0x00007CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AddRelicFilterPlanScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.plan_ != null)
			{
				if (this.plan_ == null)
				{
					this.Plan = new RelicFilterPlan();
				}
				this.Plan.MergeFrom(other.Plan);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000317 RID: 791 RVA: 0x00009B3C File Offset: 0x00007D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000318 RID: 792 RVA: 0x00009B48 File Offset: 0x00007D48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.plan_ == null)
						{
							this.Plan = new RelicFilterPlan();
						}
						input.ReadMessage(this.Plan);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000107 RID: 263
		private static readonly MessageParser<AddRelicFilterPlanScRsp> _parser = new MessageParser<AddRelicFilterPlanScRsp>(() => new AddRelicFilterPlanScRsp());

		// Token: 0x04000108 RID: 264
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000109 RID: 265
		public const int RetcodeFieldNumber = 14;

		// Token: 0x0400010A RID: 266
		private uint retcode_;

		// Token: 0x0400010B RID: 267
		public const int PlanFieldNumber = 15;

		// Token: 0x0400010C RID: 268
		private RelicFilterPlan plan_;
	}
}
